submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 Feb 2019 18:55:42 +0000 (18:55 +0000)
commit68f76f3f383d4112a836296d1d40e8e1672bfafa
treeb1d21aa808061b5da416e34ff63ae80e01b2a92e
parent8bc1a3d0fe602c0fab9a10be5750cabc8a014c44
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff
sysdeps/mach/hurd/bind.c